#!/bin/sh

NDK=/home/chenc/workspace/Android/Sdk/ndk-bundle 
PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/ 
PLATFORM=$NDK/platforms/android-8/arch-arm/ 
CC=$PREBUILT/bin/arm-linux-androideabi-gcc 
CXX=$PREBUILT/bin/arm-linux-androideabi-g++ 
LDFLAGS=--sysroot=$PLATFORM
CFLAGS="-I$PLATFORM/usr/include -fPIC" 
CXXFLAGS=$CFLAGS 

$CC -shared $CFLAGS $LDFLAGS -I/home/chenc/workspace/restful/python-android-install/include/python2.7   -o fcgiapp.so fcgiappmodule.c fcgiapp.c 
